package com.ctshk.rpc.finance.req.onaccount;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 回滚挂账额度Req
 */
@Data
@ApiModel(value = "RollBackQuotaReq",description = "回滚挂账额度Req")
public class RollBackQuotaReq implements Serializable {

    @ApiModelProperty(value = "订单ID（单项必传）")
    private Long orderId;

    @ApiModelProperty(value = "收款单号（单项不必传）")
    private String collectionNumber;

    @NotNull(message = "退款单号不能为空")
    @ApiModelProperty(value = "退款单号",required = true)
    private String refundNumber;

    @NotNull(message = "金额不能为空")
    @ApiModelProperty(value = "金额",required = true)
    private BigDecimal amount;

    @NotNull(message = "业务类型不能为空")
    @ApiModelProperty(value = "业务类型",required = true)
    private Integer businessType;

    @NotNull(message = "当前用户不能为空")
    @ApiModelProperty(value = "当前用户",required = true)
    private Long userId;

}
